import {axios} from '@/utils/request'

export function queryBike (parameter) {
  return axios({
    url: '/bike/query',
    method: 'post',
    data: parameter
  })
}

export function listBikeByStation (parameter) {
  return axios({
    url: '/bike/listByStation',
    method: 'post',
    data: parameter
  })
}

export function addBike (parameter) {
  return axios({
    url: '/bike/add',
    method: 'post',
    data: parameter
  })
}

export function editBike (parameter) {
  return axios({
    url: '/bike/update',
    method: 'post',
    data: parameter
  })
}

export function removeBike (parameter) {
  return axios({
    url: '/bike/remove',
    method: 'post',
    data: parameter
  })
}

export function editBikeState (parameter) {
  return axios({
    url: '/bike/updateState',
    method: 'post',
    data: parameter
  })
}
